﻿using System;
using GNUGo.Net.WebApp.Entities;

namespace GNUGo.Net.WebApp.WsClasses {
	[Serializable]
	public class WsMove {
		public WsMove() {
		}

		public WsMove(GoMove move) {
			X = move.X;
			Y = move.Y;
			MoveNumber = move.MoveNumber;
		}

		public WsMove(GoDeadGroup deadGroup) {
			X = deadGroup.X;
			Y = deadGroup.Y;
			MoveNumber = 0;
		}

		public int X { get; set; }
		public int Y { get; set; }
		public int MoveNumber { get; set; }
	}
}
